package org.csmzxy233401;

 interface Department {
    void work();

    default void AcceptRemark() {
        System.out.println("接受本月任务");
    }

    default void ReportWork() {
        System.out.println("汇报本月工作");
    }

    default void workFlow() {
        AcceptRemark();
        work();
        ReportWork();
    }
}
 class TechDepartment implements Department{
    @Override
    public void work(){
        System.out.println("技术部门本月的工作内容是完成购物平台的开发");
    }
}
public class example10 {
    public static void main(String[] args){
        TechDepartment t = new TechDepartment();
        t.workFlow();
    }
}